package com.br.fiscalizacao.domain;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(table = "estado")
public class Estado {

    @Size(max = 30)
    private String nome_estado;

    @Size(max = 2)
    private String sigla;

    @OneToMany(cascade = CascadeType.ALL)
    private Set<Municipio> municipio = new HashSet<Municipio>();
}
